package login

import (
	"5-19yk/common/proto/doctor"
	"5-19yk/service/server"
	"context"
)

type ServerDoctor struct {
	doctor.UnimplementedDoctorServer
}

func (s ServerDoctor) SendSms(ctx context.Context, req *doctor.SendSmsReq) (*doctor.SendSmsResp, error) {
	sms, err := server.SendSms(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) Login(ctx context.Context, req *doctor.LoginReq) (*doctor.LoginResp, error) {
	sms, err := server.Login(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) HospitalList(ctx context.Context, req *doctor.HospitalListReq) (*doctor.HospitalListResp, error) {
	sms, err := server.HospitalList(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) DepartmentList(ctx context.Context, req *doctor.DepartmentListReq) (*doctor.DepartmentListResp, error) {
	sms, err := server.DepartmentList(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) PatientList(ctx context.Context, req *doctor.PatientListReq) (*doctor.PatientListResp, error) {
	sms, err := server.PatientList(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) DoctorList(ctx context.Context, req *doctor.DoctorListReq) (*doctor.DoctorListResp, error) {
	sms, err := server.DoctorList(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) OrderCreate(ctx context.Context, req *doctor.OrderCreateReq) (*doctor.OrderCreateResp, error) {
	sms, err := server.OrderCreate(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s ServerDoctor) OrderList(ctx context.Context, req *doctor.OrderListReq) (*doctor.OrderListResp, error) {
	sms, err := server.OrderList(req)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
